﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Http
{
    /// <summary>
    /// Http 数据协议类型
    /// </summary>
    public class HttpContentType
    {
        /// <summary>
        /// JavaScript 数据协议
        /// </summary>
        public const string JavaScript = "application/javascript;charset=utf-8";

        /// <summary>
        /// SOAP 数据协议
        /// </summary>
        public const string Soap = "application/soap+xml;charset=utf-8";

        /// <summary>
        /// Json 数据协议
        /// </summary>
        public const string Json = "application/json;charset=utf-8";

        /// <summary>
        /// XML 数据协议
        /// </summary>
        public const string Xml = "application/xml;charset=utf-8";

        /// <summary>
        /// 表单 数据协议
        /// </summary>
        public const string Form = "application/x-www-form-urlencoded;charset=utf-8";

        /// <summary>
        /// PDF
        /// </summary>
        public const string PDF = "application/pdf";

        /// <summary>
        /// 八字节流
        /// </summary>
        public const string OctetStream = "application/octet-stream";

        /// <summary>
        /// ZIP压缩文件
        /// </summary>
        public const string Zip = "application/zip";

        /// <summary>
        /// GNU zip
        /// </summary>
        public const string GZip = "application/gzip";

        /// <summary>
        /// xls
        /// </summary>
        public const string Xls = "application/x-xls";

        /// <summary>
        /// 证书文件
        /// </summary>
        public const string Cert = "application/x-x509-ca-cert";
        
        /// <summary>
        /// P12证书文件
        /// </summary>
        public const string P12 = "application/x-pkcs12";

        #region 文本 媒体类型
        /// <summary>
        /// 证书文件
        /// </summary>
        public const string Txt = "text/plain";

        /// <summary>
        /// CSV文件
        /// </summary>
        public const string Csv = "text/csv";
        #endregion

        #region 图片 媒体类型
        /// <summary>
        /// gif 文件
        /// </summary>
        public const string Gif = "image/gif";

        /// <summary>
        /// icon 文件
        /// </summary>
        public const string Icon = "image/x-icon";

        /// <summary>
        /// jpeg 文件
        /// </summary>
        public const string Jpeg = "image/jpeg";

        /// <summary>
        /// png 文件
        /// </summary>
        public const string Png = "image/png";

        /// <summary>
        /// tiff 文件
        /// </summary>
        public const string Tiff = "image/tiff";

        #endregion

        #region 音频 媒体类型

        /// <summary>
        ///  mp3 文件
        /// </summary>
        public const string Mp3 = "audio/mp3";
        
        /// <summary>
        /// wav 文件
        /// </summary>
        public const string Wav = "audio/wav";
        
        /// <summary>
        /// Wma 文件
        /// </summary>
        public const string Wma = "	audio/x-ms-wma";

        #endregion

        #region 视频 媒体类型

        /// <summary>
        /// mp4 文件
        /// </summary>
        public const string Mp4 = "video/mpeg4";

        /// <summary>
        /// mpeg 文件
        /// </summary>
        public const string Mpeg = "video/mpg";


        /// <summary>
        /// wmv 文件
        /// </summary>
        public const string Wmv = "video/x-ms-wmv";

        /// <summary>
        /// avi 文件
        /// </summary>
        public const string Avi = "video/avi";

        #endregion
    }
}
